package com.yidu.ladder.base.domain;

import java.sql.Date;
/**
 * 基础工作单包装类
 * @author bamboo
 *
 */
public class ArchiveVo {
	/**
	 * 基础档案ID
	 */
	private String archivesId;
	/**
	 * 基础档案名
	 */
	private String archivesName;
	/**
	 * 父级档案Id
	 */
	private String parentId;
	/**
	 * 父级档案名
	 */
	private String parentName;
	/**
	 * 是否分级
	 */
	private String classification;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 是否可用
	 */
	private String useable;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 页码
	 */
	private Integer page;
	/**
	 * 页面大小
	 */
	private Integer limit;
	/**
	 * 状态
	 */
	private Integer status;
	
	/**
	 * 空的构造方法
	 */
	public ArchiveVo() {
		
	}
	/**
	 * 所有属性的构造方法
	 * @param archivesId 基础档案Id
	 * @param archivesName 基础档案名 
	 * @param parentId 父基础档案Id
	 * @param parentName 父基础档案名
	 * @param classification 是否分级
	 * @param description 描述
	 * @param useable 是否可用
	 * @param createTime 创建时间
	 * @param page 页面
	 * @param limit 大小
	 * @param status 状态
	 */
	public ArchiveVo(String archivesId, String archivesName, String parentId, String parentName, String classification,
			String description, String useable, Date createTime, Integer page, Integer limit, Integer status) {
		super();
		this.archivesId = archivesId;
		this.archivesName = archivesName;
		this.parentId = parentId;
		this.parentName = parentName;
		this.classification = classification;
		this.description = description;
		this.useable = useable;
		this.createTime = createTime;
		this.page = page;
		this.limit = limit;
		this.status = status;
	}

	public String getArchivesId() {
		return archivesId;
	}

	public void setArchivesId(String archivesId) {
		this.archivesId = archivesId;
	}

	public String getArchivesName() {
		return archivesName;
	}

	public void setArchivesName(String archivesName) {
		this.archivesName = archivesName;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getClassification() {
		return classification;
	}

	public void setClassification(String classification) {
		this.classification = classification;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUseable() {
		return useable;
	}

	public void setUseable(String useable) {
		this.useable = useable;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((archivesId == null) ? 0 : archivesId.hashCode());
		result = prime * result + ((archivesName == null) ? 0 : archivesName.hashCode());
		result = prime * result + ((classification == null) ? 0 : classification.hashCode());
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((limit == null) ? 0 : limit.hashCode());
		result = prime * result + ((page == null) ? 0 : page.hashCode());
		result = prime * result + ((parentId == null) ? 0 : parentId.hashCode());
		result = prime * result + ((parentName == null) ? 0 : parentName.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((useable == null) ? 0 : useable.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ArchiveVo other = (ArchiveVo) obj;
		if (archivesId == null) {
			if (other.archivesId != null)
				return false;
		} else if (!archivesId.equals(other.archivesId))
			return false;
		if (archivesName == null) {
			if (other.archivesName != null)
				return false;
		} else if (!archivesName.equals(other.archivesName))
			return false;
		if (classification == null) {
			if (other.classification != null)
				return false;
		} else if (!classification.equals(other.classification))
			return false;
		if (createTime == null) {
			if (other.createTime != null)
				return false;
		} else if (!createTime.equals(other.createTime))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (limit == null) {
			if (other.limit != null)
				return false;
		} else if (!limit.equals(other.limit))
			return false;
		if (page == null) {
			if (other.page != null)
				return false;
		} else if (!page.equals(other.page))
			return false;
		if (parentId == null) {
			if (other.parentId != null)
				return false;
		} else if (!parentId.equals(other.parentId))
			return false;
		if (parentName == null) {
			if (other.parentName != null)
				return false;
		} else if (!parentName.equals(other.parentName))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (useable == null) {
			if (other.useable != null)
				return false;
		} else if (!useable.equals(other.useable))
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "ArchiveVo [archivesId=" + archivesId + ", archivesName=" + archivesName + ", parentId=" + parentId
				+ ", parentName=" + parentName + ", classification=" + classification + ", description=" + description
				+ ", useable=" + useable + ", createTime=" + createTime + ", page=" + page + ", limit=" + limit
				+ ", status=" + status + "]";
	}

	
	
}
